import request from '@/utils/request'

// 查询对账单列表
export function listQdPay (query) {
  return request({
    url: '/system/qdPay/list',
    method: 'get',
    params: query
  })
}

// 查询对账单详细
export function getQdPay (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/qdPay/getInfo',
    method: 'get',
    params: params
  })
}

// 新增对账单
export function addQdPay (data) {
  return request({
    url: '/system/qdPay/insert',
    method: 'post',
    data: data
  })
}

// 修改对账单
export function updateQdPay (data) {
  return request({
    url: '/system/qdPay/update',
    method: 'post',
    data: data
  })
}

// 删除对账单
export function delQdPay (id) {
  const params = {
    'id': id
  }
  return request({
    url: '/system/qdPay/delete',
    method: 'post',
    params: params
  })
}
// 批量删除对账单
export function delBatchQdPay (ids) {
  const params = {
    'ids': ids
  }
  return request({
    url: '/system/qdPay/deleteBatch',
    method: 'post',
    params: params
  })
}

// 导入对账单
export function importData (data) {
  return request({
    url: '/system/qdPay/importData',
    method: 'post',
    data: data
  })
}
